# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kde-dev-scripts
pkgver=20.04.3
pkgrel=0
arch="all !armhf"
url="https://kde.org/applications/development/"
pkgdesc="Scripts and setting files useful during development of KDE software"
license="GPL-2.0-or-later AND GFDL-1.2-only"
makedepends="extra-cmake-modules kdoctools-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/kde-dev-scripts-$pkgver.tar.xz"
subpackages="$pkgname-doc"
options="!check" # No code to test

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="e818269cfb042cff31b7c00c310bb737cd52c7db62a90c381d95808b0bfd43cb18f13f9852e2494c6c85fd12e94be1cda038342d395804f7126da4af677691d2  kde-dev-scripts-20.04.3.tar.xz"
